import { IsInt, Min } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateOrderDto {
  @ApiProperty({ description: '商品ID' })
  @IsInt()
  productId: number;

  @ApiProperty({ description: '购买数量', default: 1 })
  @IsInt()
  @Min(1)
  quantity: number;
} 